package com.jyy.prefabricated.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyy.prefabricated.enums.BaseTeamEnum;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 题库管理表
 */
@Data
public class QuestionBank implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 题库分类
     */
    private Integer categoryId;
    private String category;
    /**
     * 题库类型
     */
    private Integer type;

    /**
     * 题库名称
     */
    private String name;

    /**
     * 题库状态
     */
    private String questionState;

    /**
     * 是否逻辑删除
     */
    private Boolean deleted = false;

    /**
     * 租户编码
     */
    private String teamCode = BaseTeamEnum.BASE.getValue();

    /**
     * 企业id
     */
    private Integer trainingOrganizationId;

    /**
     * 原价
     */
    private BigDecimal listPrice;

    /**
     * 售价
     */
    private BigDecimal price;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 备注
     */
    private String remark;


    /**
     * 题库题目数量
     */
    private Integer questionCount;


}